/** @file   config.h
    @author M. P. Hayes, UCECE
    @date   15 May 2007
    @brief  Common configuration definitions.
*/
#ifndef CONFIG_H
#define CONFIG_H

/* Data typedefs.  */
#include <stdint.h>

typedef uint8_t bool;


/* Include target definitions.  */
#include "target.h"


/* Define some useful macros.  */
#ifndef _BV
#define _BV(X) (1 << (X))
#endif

#ifndef BIT
#define BIT(X) _BV(X)
#endif

#define ARRAY_SIZE(ARRAY) (sizeof(ARRAY) / sizeof (ARRAY[0]))

#endif /* CONFIG_H  */


